/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package se392.ateam2006.utils;

import java.util.ArrayList;
import se392.ateam2006.meetingmgmt.MeetingCandidate;
import se392.ateam2006.resourcemgmt.participant.exclusionset.ExclusionRangeEntity;

/**
 *
 * @author rob
 */
public class Debug {
    
    //SET AT COMPILE TIME
    public static final int VERBOSITY = 1; //1 == print all messages
    
    public static void print(String message){
        System.err.println(message);
    }
 
    public static void print(int verbosity, String message){
        if(verbosity >= VERBOSITY){
            System.err.println(message);
        }
    }
    
    
    public static void printMC(ArrayList<MeetingCandidate> mc){
        System.err.println("List Size : " + mc.size());
        for(MeetingCandidate m : mc){
            System.err.println("Candidate " + m.getStart().getTime() + " : " + m.getEnd().getTime() + "[" + m.getValidity() + "]");
        }
    }
    
    public static void printOneMC(MeetingCandidate m){
        System.err.println("Candidate " + m.getStart().getTime() + " : " + m.getEnd().getTime());
    }
    
    public static void printEX(ArrayList<ExclusionRangeEntity> ex){
        System.err.println("List Size : " + ex.size());
        for(ExclusionRangeEntity m : ex){
            System.err.println("Candidate " + m.getStartDate().getTime() + " : " + m.getEndDate().getTime());
        }
    }
}
